export function youtubeCallBack() {
  setTimeout(() => {
    let count = 0;
    let timer = setInterval(() => {
      count++;
      let videoArr = document.getElementsByTagName("video");
      if (videoArr[0]) {
        let currentVideoEl = document.getElementsByTagName("video")[0];
        currentVideoEl.paused && currentVideoEl.play(); // 自动播放
        currentVideoEl.playbackRate = 2; // 自动两倍速
        currentVideoEl.volume = 1; // 设置百分之百的音量
        currentVideoEl.muted && (currentVideoEl.muted = false); // 关闭静音，开启声音
      }

      if (count > 30) {
        clearInterval(timer);
      }
    }, 300);
  }, 1000);
}
